package model;

import java.util.List;

/**
 * Listener interface for manipulators. 
 * @author Mike Nelson mnelson@cs.usm.maine.edu
 *
 */
public interface ManipulatorListener {

	/**
	 * Occurs when data is retrieved from a comm port and sent through a 
	 * manipulator. 
	 * @param manip the manipulator who is responsible for the retrieval
	 * @param data a list of returned values (whatever was sitting on the port)
	 */
	public void dataReady(Manipulator manip, List<String> data);
	
	/**
	 * Gives the listener a copy of the data being sent to the comm port.
	 * @param manip the manipulator sending the data
	 * @param command the command being sent
	 */
	public void dataSending(Manipulator manip, String command);
}
